package org.oimwrapper.connectors.exceptions;

/**
 * This exception is to be thrown when a key is not found in the OIM database.
 */
public class OIMKeyNotFoundException extends Exception {

	/**
	 * Basic constructor.
	 *
	 * @param Object The type of item that was being searched for.
	 * @param Key The key value that was not found.
	 */
	public OIMKeyNotFoundException(String Object, String Key) {
		super("Unable to find " + Object + " : " + Key);
	}

	/**
	 * Basic constructor.
	 *
	 * @param Object The type of item that was being searched for.
	 * @param Key The key value that was not found.
	 */
	public OIMKeyNotFoundException(String Object, long Key) {
		super("Unable to find " + Object + " : " + Long.toString(Key));
	}
}